package org.bitterorange.flansmodslain.actions;

import org.bitterorange.flansmodslain.FlansModSlain;
import org.bukkit.entity.Player;

public class Money {
    public static void give(Player player, double amount) {
        FlansModSlain.getVaultEconomy().depositPlayer(player, amount);
    }

    public static void take(Player player, double amount) {
        FlansModSlain.getVaultEconomy().withdrawPlayer(player, amount);
    }

    public static boolean has(Player player, double amount) {
        return FlansModSlain.getVaultEconomy().has(player, amount);
    }

    public static double balanceOf(Player player) {
        return FlansModSlain.getVaultEconomy().getBalance(player);
    }
}
